/**
 * 获取该月最后一天
 * @param value 需要查询的月份
 */

export function getEndDateFn(value) { // 形参value值的格式为yyyy-MM-dd或yyyy-MM
	let date = new Date(value);
	let month = date.getMonth() + 1;
	month = month < 10 ? "0" + month : month;
	let dayEnd = new Date(date.getFullYear(), month, 0).getDate();
	let dateValue = date.getFullYear() + "-" + month + "-" + dayEnd;
	return dateValue;
}